﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Windows.Media;
namespace LoWoTSniffer
{
    class EndDevice : INotifyPropertyChanged
    {
        
        private byte _RN;
        private UInt16 _DNAddr;
        private Color _bkColor;

        public byte RN {
            get 
            { 
                return _RN;
            }

            set 
            {
                _RN = value;
                OnPropertyChanged("RN");
            }
        }                 // field
        public UInt16 DNAddr {
            get 
            { 
                return _DNAddr; 
            }
            set 
            {
                _DNAddr = value;
                OnPropertyChanged("DNAddr");
            }
        }            // field

        public Color bkColor {
            get
            {
                return _bkColor;
            }
            set
            {
                _bkColor = value;
                OnPropertyChanged("bkColor");
            }        

        }

        public event PropertyChangedEventHandler PropertyChanged;

        virtual internal protected void OnPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
